home *** CD-ROM | disk | FTP | other *** search
- var §\x01§ = 908;
- while(true)
- {
- if(eval("\x01") == 908)
- {
- set("\x01",eval("\x01") - 753);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 818)
- {
- set("\x01",eval("\x01") + 3);
- break;
- }
- if(eval("\x01") == 565)
- {
- set("\x01",eval("\x01") + 209);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 365);
- }
- }
- else if(eval("\x01") == 155)
- {
- set("\x01",eval("\x01") + 663);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 3);
- }
- }
- else if(eval("\x01") == 381)
- {
- set("\x01",eval("\x01") - 346);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 543)
- {
- set("\x01",eval("\x01") + 256);
- §§push(§§pop() >> (§§pop() >>> (§§pop() >> (§§pop() >>> §§pop() | §§pop() >>> §§pop()))));
- break;
- }
- if(eval("\x01") == 812)
- {
- set("\x01",eval("\x01") - 306);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 214);
- }
- }
- else if(eval("\x01") == 821)
- {
- set("\x01",eval("\x01") - 493);
- §§push(true);
- }
- else if(eval("\x01") == 799)
- {
- set("\x01",eval("\x01") + 13);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 506)
- {
- set("\x01",eval("\x01") - 214);
- break;
- }
- if(eval("\x01") == 292)
- {
- set("\x01",eval("\x01") + 503);
- §§push(true);
- }
- else if(eval("\x01") == 945)
- {
- set("\x01",eval("\x01") - 219);
- §§push(true);
- }
- else if(eval("\x01") == 35)
- {
- set("\x01",eval("\x01") + 718);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 199);
- }
- }
- else
- {
- if(eval("\x01") == 544)
- {
- set("\x01",eval("\x01") - 163);
- if(!§§pop())
- {
- set("\x01",eval("\x01") - 495);
- if(!_global.utils)
- {
- _global.utils = new Object();
- }
- §§pop();
- if(!_global.utils.FMusic)
- {
- utils.FMusic extends MovieClip;
- var _loc2_ = utils.FMusic = function()
- {
- super();
- this.music_arr = new Array();
- this.music_arr_indx = new Object();
- this.activeMusic = null;
- this.valume = 50;
- this.countLoop = 1000000;
- this.indexSound = 0;
- }.prototype;
- _loc2_.setLoop = function(loop)
- {
- this.countLoop = loop;
- };
- _loc2_.addMusic2 = function(nameMusic, url, compliteFunc, progressFunc, goal)
- {
- if(this[nameMusic] == undefined)
- {
- var _loc3_ = this.getNextHighestDepth();
- this.createEmptyMovieClip(nameMusic,_loc3_);
- var _loc2_ = new Sound(this[nameMusic]);
- _loc2_.onLoad = function(how)
- {
- trace("> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!");
- compliteFunc.apply(goal,[how]);
- if(how == false)
- {
- this[nameMusic].removeMovieClip();
- }
- };
- _loc2_.loadSound(url);
- _loc2_.mc = this[nameMusic];
- this.music_arr.push(_loc2_);
- this.music_arr_indx[nameMusic] = Number(this.music_arr.length - 1);
- }
- else
- {
- compliteFunc.apply(goal,[true]);
- }
- };
- _loc2_.addMusic = function(nameMusic)
- {
- var _loc4_ = this.getNextHighestDepth();
- this.createEmptyMovieClip(nameMusic,_loc4_);
- var _loc3_ = new Sound(this[nameMusic]);
- _loc3_.attachSound(nameMusic);
- this.music_arr.push(_loc3_);
- this.music_arr_indx[nameMusic] = this.music_arr.length - 1;
- };
- _loc2_.setValume = function(val)
- {
- this.valume = val;
- for(var _loc3_ in this.music_arr)
- {
- this.music_arr[_loc3_].setVolume(val);
- }
- };
- _loc2_.playMusic2 = function(nameM)
- {
- trace("playMusic2 >>> " + this.music_arr_indx[nameM] + " " + nameM);
- this.playMusic(this.music_arr_indx[nameM]);
- };
- _loc2_.playMusic = function(index)
- {
- trace("PLAY >>>>>>>>>> " + this.activeMusic + " " + index);
- if(this.activeMusic != index)
- {
- if(index >= this.music_arr.length || index < 0 || index == undefined)
- {
- index = 0;
- }
- this.currentLoop = this.countLoop;
- this.lastMusic = this.activeMusic;
- this.activeMusic = index;
- var v0 = this.valume;
- this.onEnterFrame = function()
- {
- v0--;
- if(v0 <= 0)
- {
- v0 = 0;
- this.onEnterFrame = function()
- {
- v0++;
- if(v0 >= this.valume)
- {
- v0 = this.valume;
- this.onEnterFrame = null;
- }
- this.music_arr[this.activeMusic].setVolume(v0);
- };
- this.music_arr[this.lastMusic].stop();
- }
- this.music_arr[this.lastMusic].setVolume(v0);
- };
- this.music_arr[this.activeMusic].setVolume(0);
- this.music_arr[this.activeMusic].start(0,this.currentLoop);
- this.music_arr[this.activeMusic]._parent = this;
- this.music_arr[this.activeMusic].onSoundComplete = function()
- {
- this = this._parent;
- this.music_arr[this.activeMusic].start();
- v0 = this.valume;
- this.onEnterFrame = function()
- {
- v0--;
- this.music_arr[this.activeMusic].setVolume(v0);
- if(v0 <= 0)
- {
- this.music_arr[this.activeMusic].stop();
- this.onEnterFrame = null;
- this.playMusic(this.activeMusic + 1);
- }
- };
- this.music_arr[this.activeMusic].onSoundComplete = null;
- };
- }
- };
- _loc2_.stopMusic = function()
- {
- this.v0 = this.valume;
- this.onEnterFrame = function()
- {
- this.v0 -= 5;
- this.music_arr[this.activeMusic].setVolume(this.v0);
- if(this.v0 <= 0)
- {
- this.music_arr[this.activeMusic].stop();
- this.activeMusic = null;
- this.onEnterFrame = null;
- }
- };
- };
- _loc2_.pauseMusic = function(how)
- {
- if(how)
- {
- this.v0 = this.valume;
- this.onEnterFrame = function()
- {
- this.v0 -= 5;
- this.music_arr[this.activeMusic].setVolume(this.v0);
- if(this.v0 <= 0)
- {
- this.music_arr[this.activeMusic].stop();
- this.onEnterFrame = null;
- }
- };
- }
- else
- {
- this.playMusic(this.activeMusic);
- }
- };
- §§push(ASSetPropFlags(utils.FMusic.prototype,null,1));
- }
- §§pop();
- }
- break;
- }
- if(eval("\x01") == 795)
- {
- set("\x01",eval("\x01") - 251);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 163);
- }
- }
- else if(eval("\x01") == 499)
- {
- set("\x01",eval("\x01") + 44);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 256);
- }
- }
- else
- {
- if(eval("\x01") == 753)
- {
- set("\x01",eval("\x01") - 199);
- §§pop()[§§pop()] = new §\§\§pop()§();
- §§pop();
- if(!_global.utils.FMusic)
- {
- _loc2_ = utils.FMusic = function()
- {
- this.music_arr = new Array();
- }.music_arr_indx;
- _loc2_.activeMusic = function(goal, action, delay, param)
- {
- trace("valume");
- var _loc2_ = new Object();
- _loc2_.countLoop = goal;
- _loc2_.indexSound = action;
- _loc2_.MovieClip = delay;
- _loc2_.prototype = new Array();
- _loc2_.prototype = param;
- this.music_arr.setLoop(_loc2_);
- if(this.music_arr.addMusic2 == 1)
- {
- this.nameMusic();
- }
- };
- _loc2_.getNextHighestDepth = function(val)
- {
- this.createEmptyMovieClip = val;
- };
- _loc2_.Sound = function()
- {
- return this.music_arr.addMusic2;
- };
- _loc2_.onLoad = function(how)
- {
- if(how)
- {
- goal(this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"]);
- delete this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"];
- }
- else
- {
- this.nameMusic();
- }
- };
- _loc2_.compliteFunc = function()
- {
- goal(this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"]);
- delete this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"];
- while(this.music_arr.addMusic2 > 0)
- {
- this.music_arr.apply();
- }
- };
- _loc2_.removeMovieClip = function(who)
- {
- loadSound = mc;
- eval(loadSound.music_arr[0].countLoop + "push" + loadSound.music_arr[0].indexSound).length(loadSound.music_arr[0].countLoop,loadSound.music_arr[0].prototype);
- loadSound.music_arr.apply();
- loadSound.nameMusic();
- };
- _loc2_.nameMusic = function()
- {
- goal(this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"]);
- delete this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"];
- if(this.music_arr.addMusic2 != 0)
- {
- if(this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"] == undefined)
- {
- goal(this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"]);
- this["> MUSIC LOADED !!!!!!!!!!!!!!!!!!!!!!!!!!!"] = addMusic(this.removeMovieClip,Number(this.music_arr[0].MovieClip),this);
- }
- }
- };
- §§push(attachSound(utils.FMusic.music_arr_indx,null,1));
- }
- §§pop();
- break;
- }
- if(eval("\x01") == 328)
- {
- set("\x01",eval("\x01") + 366);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 251);
- }
- }
- else
- {
- if(eval("\x01") == 694)
- {
- set("\x01",eval("\x01") + 251);
- if(utils.FMusic = function()
- {
- this.music_arr = new Array();
- }["createEmptyMovieClip" + (utils.FMusic = function()
- {
- this.music_arr = new Array();
- }.Array - 100)].countLoop != true)
- {
- delete utils.FMusic = function()
- {
- this.music_arr = new Array();
- }["createEmptyMovieClip" + (utils.FMusic = function()
- {
- this.music_arr = new Array();
- }.Array - 100)].indexSound;
- utils.FMusic = function()
- {
- this.music_arr = new Array();
- }["createEmptyMovieClip" + (utils.FMusic = function()
- {
- this.music_arr = new Array();
- }.Array - 100)].nameMusic();
- }
- return createEmptyMovieClip.indexSound;
- }
- if(eval("\x01") == 726)
- {
- set("\x01",eval("\x01") + 1);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 66);
- }
- }
- else if(eval("\x01") == 554)
- {
- set("\x01",eval("\x01") + 11);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 774)
- {
- set("\x01",eval("\x01") - 365);
- break;
- }
- if(eval("\x01") == 409)
- {
- set("\x01",eval("\x01") + 500);
- if(!_global.engine)
- {
- _global.engine = new Object();
- }
- §§pop();
- if(!_global.engine.Collide)
- {
- _loc2_ = engine.Collide = function()
- {
- }.prototype;
- _loc2_.getVar = function(v)
- {
- return this.tvar;
- };
- _loc2_.setVar = function(v)
- {
- this.tvar = v;
- };
- _loc2_.collideF = function(p1, p2)
- {
- var _loc11_ = undefined;
- var _loc10_ = undefined;
- var _loc9_ = undefined;
- var _loc8_ = undefined;
- var _loc3_ = undefined;
- var _loc12_ = undefined;
- var _loc7_ = undefined;
- var _loc2_ = undefined;
- var _loc17_ = undefined;
- _loc2_ = 0;
- _loc7_ = [];
- _loc3_ = [];
- _loc12_ = p1.pos.minusNew(p2.pos);
- _loc8_ = p1.vertex.length - 1;
- var _loc4_ = 0;
- while(_loc4_ < p1.vertex.length)
- {
- _loc11_ = p1.vertex[_loc8_];
- _loc10_ = p1.vertex[_loc4_];
- _loc9_ = _loc10_.minusNew(_loc11_);
- _loc8_ = _loc4_;
- _loc3_[_loc2_] = new math.Vector();
- _loc7_[_loc2_] = new Number();
- _loc3_[_loc2_] = _loc9_.getNormal();
- if(!this.intervalIntersect(p1,p2,_loc3_[_loc2_],_loc12_))
- {
- return false;
- }
- _loc7_[_loc2_] = this.getVar();
- _loc2_ = _loc2_ + 1;
- _loc4_ = _loc4_ + 1;
- }
- _loc8_ = p2.vertex.length - 1;
- _loc4_ = 0;
- while(_loc4_ < p2.vertex.length)
- {
- _loc11_ = p2.vertex[_loc8_];
- _loc10_ = p2.vertex[_loc4_];
- _loc9_ = _loc10_.minusNew(_loc11_);
- _loc8_ = _loc4_;
- _loc3_[_loc2_] = new math.Vector();
- _loc7_[_loc2_] = new Number();
- _loc3_[_loc2_] = _loc9_.getNormal();
- if(!this.intervalIntersect(p1,p2,_loc3_[_loc2_],_loc12_))
- {
- return false;
- }
- _loc7_[_loc2_] = this.getVar();
- _loc2_ = _loc2_ + 1;
- _loc4_ = _loc4_ + 1;
- }
- var _loc15_ = this.findMTD(_loc3_,_loc7_,_loc2_);
- var _loc14_ = _loc15_.N;
- var _loc16_ = _loc15_.t;
- if(_loc14_.dot(_loc12_) < 0)
- {
- _loc14_.negate();
- }
- var _loc13_ = new Object();
- _loc13_.N = _loc14_;
- _loc13_.t = _loc16_;
- return _loc13_;
- };
- _loc2_.intervalIntersect = function(p1, p2, xAxis, xOffset)
- {
- var _loc2_ = [];
- var _loc4_ = [];
- var _loc7_ = undefined;
- var _loc3_ = undefined;
- var _loc5_ = undefined;
- var _loc6_ = undefined;
- _loc2_ = this.getInterval(p1,xAxis);
- _loc4_ = this.getInterval(p2,xAxis);
- _loc7_ = xOffset.dot(xAxis);
- _loc2_[0] += _loc7_;
- _loc2_[1] += _loc7_;
- _loc3_ = _loc2_[0] - _loc4_[1];
- _loc5_ = _loc4_[0] - _loc2_[1];
- if(_loc3_ > 0 || _loc5_ > 0)
- {
- return false;
- }
- _loc6_ = _loc5_;
- if(_loc3_ > _loc5_)
- {
- _loc6_ = _loc3_;
- }
- this.setVar(_loc6_);
- return true;
- };
- _loc2_.getInterval = function(p, xAxis)
- {
- var _loc3_ = undefined;
- var _loc4_ = undefined;
- var _loc7_ = [];
- var _loc1_ = undefined;
- _loc3_ = p.vertex[0].dot(xAxis);
- _loc4_ = _loc3_;
- var _loc2_ = 1;
- while(_loc2_ < p.vertex.length)
- {
- _loc1_ = p.vertex[_loc2_].dot(xAxis);
- if(_loc1_ < _loc3_)
- {
- _loc3_ = _loc1_;
- }
- else if(_loc1_ > _loc4_)
- {
- _loc4_ = _loc1_;
- }
- _loc2_ = _loc2_ + 1;
- }
- _loc7_ = [_loc3_,_loc4_];
- return _loc7_;
- };
- _loc2_.findMTD = function(xAxis, taxis, iNumAxes)
- {
- var _loc9_ = undefined;
- var _loc5_ = undefined;
- _loc5_ = -1;
- var _loc4_ = 0;
- var _loc6_ = new math.Vector();
- var _loc1_ = 0;
- while(_loc1_ < iNumAxes)
- {
- taxis[_loc1_] /= xAxis[_loc1_].getLength();
- xAxis[_loc1_].x /= xAxis[_loc1_].getLength();
- xAxis[_loc1_].y /= xAxis[_loc1_].getLength();
- if(taxis[_loc1_] > _loc4_ || _loc5_ == -1)
- {
- _loc5_ = _loc1_;
- _loc4_ = taxis[_loc1_];
- _loc6_ = xAxis[_loc1_];
- }
- _loc1_ = _loc1_ + 1;
- }
- var _loc8_ = new Object();
- _loc8_.N = _loc6_;
- _loc8_.t = _loc4_;
- return _loc8_;
- };
- _loc2_.checkDist = function(obj1, obj2)
- {
- var _loc1_ = obj1.poly.pos.minusNew(obj2.poly.pos);
- var _loc2_ = obj1.poly.maxRadius + obj2.poly.maxRadius;
- var _loc3_ = _loc1_.getLength() >= _loc2_ ? false : true;
- return _loc3_;
- };
- _loc2_.isCollide = function(objects)
- {
- var _loc6_ = 0;
- while(_loc6_ < objects.length)
- {
- var _loc5_ = objects[_loc6_];
- var _loc2_ = 0;
- while(_loc2_ < objects.length)
- {
- if(_loc6_ != _loc2_ && this.checkDist(_loc5_,objects[_loc2_]))
- {
- var _loc4_ = this.collideF(_loc5_.poly,objects[_loc2_].poly);
- if(_loc4_ != false)
- {
- _loc5_.boom(_loc4_.N,_loc4_.t,objects[_loc2_]);
- }
- }
- _loc2_ = _loc2_ + 1;
- }
- _loc6_ = _loc6_ + 1;
- }
- };
- _loc2_.isCollide2 = function(objects, objects2)
- {
- var _loc6_ = 0;
- while(_loc6_ < objects.length)
- {
- var _loc4_ = objects[_loc6_];
- var _loc2_ = 0;
- while(_loc2_ < objects2.length)
- {
- if(this.checkDist(_loc4_,objects2[_loc2_]))
- {
- var _loc3_ = this.collideF(_loc4_.poly,objects2[_loc2_].poly);
- if(_loc3_ != false)
- {
- _loc4_.boom2(_loc3_.N,_loc3_.t,objects2[_loc2_]);
- }
- }
- _loc2_ = _loc2_ + 1;
- }
- _loc6_ = _loc6_ + 1;
- }
- };
- §§push(ASSetPropFlags(engine.Collide.prototype,null,1));
- }
- §§pop();
- break;
- }
- if(eval("\x01") != 793)
- {
- if(eval("\x01") == 727)
- {
- set("\x01",eval("\x01") + 66);
- }
- break;
- }
- set("\x01",eval("\x01") - 294);
- §§push(true);
- }
- }
- }
- }
- }
- }
- }
- }
-